package com.lex.service;

import com.lex.common.api.CommonResult;
import com.lex.data.admin.model.LexSysDictData;
import com.lex.data.admin.model.LexSysDictType;
import com.lex.entity.params.DictDataQueryParams;
import com.lex.entity.params.DictDataStatusQuery;
import com.lex.entity.params.DictTypeQueryParams;
import com.lex.entity.params.DictTypeStatusQuery;

/**
 *
 * 字典管理服务接口
 */
public interface DictService {
    //更新数据字典类型状态
    CommonResult updateTypeStatus(DictTypeStatusQuery dictTypeStatusQuery);
    //新增字典类型
    CommonResult createType(LexSysDictType dictType);
    //修改字典类型
    CommonResult updateType(LexSysDictType dictType);
    //删除字典类型
    CommonResult deleteType(Long dict_id);
    //获取所有字典类型列表
    CommonResult allDictListType(DictTypeQueryParams query, Integer pageSize, Integer page);
    //获取所有字典数据列表
    CommonResult allDictListData(DictDataQueryParams query, Integer pageSize, Integer page);
    //新增字典数据
    CommonResult createData(LexSysDictData dictData);
    //修改字典数据
    CommonResult updateData(LexSysDictData dictData);
    //删除字典数据
    CommonResult deleteData(Long dict_code);
    //更新数据字典状态
    CommonResult updateDataStatus(DictDataStatusQuery dictDataStatusQuery);
    //根据字典类型获取字典数据
    CommonResult getDictDataByType(String dictType);
}
